<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
<title>JSTL fmt:setLocale标签</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>
	<div style="margin: auto; width: 80%">
		<fmt:setLocale value="zh_cn" />
		<fmt:formatNumber value="101000.3" type="currency" />
		<br />
		<fmt:setLocale value="en_Us" />
		<fmt:formatNumber value="101000.3" type="currency" />
		<br />

		<fmt:setLocale value="zh_cn" />
		<fmt:formatDate value="<%=new Date()%>" />
		<br />
		<fmt:setLocale value="zh_tw" />
		<fmt:formatDate value="<%=new Date()%>" />
		<fmt:setLocale value="zh_cn" />
		<fmt:formatDate value="<%=new Date()%>" />
		<br />
		<fmt:setLocale value="de_de" />
		<fmt:formatDate value="<%=new Date()%>" />
		<br />

		<!-- Change the Locale -->
		<fmt:setLocale value="zh_cn" />
		<fmt:bundle basename="com.yiibai.Example_Cn">

			<fmt:message key="count.one" />
			<br />
			<fmt:message key="count.two" />
			<br />
			<fmt:message key="count.three" />
			<br />
		</fmt:bundle>

	</div>
</body>
</html>